summaryrefslogtreecommitdiff
path: root/src/pages/[locale]
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-23 20:05:41 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-23 20:31:20 +0100
commit52fa5e27fc37bc156ef722c8258646057a8a826d (patch)
treedea6e5e3c78c808360d3fa36d96c89d31f75fc8b /src/pages/[locale]
parent8a4964fbd8fe8064ee643f135e17fab640a48ce7 (diff)
Displays committee role
Diffstat (limited to 'src/pages/[locale]')
-rw-r--r--src/pages/[locale]/index.astro5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro
index cb38bc5..b47a045 100644
--- a/src/pages/[locale]/index.astro
+++ b/src/pages/[locale]/index.astro
@@ -3,12 +3,14 @@ import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
import tPage from '$i18n/translations/pages/home';
+import tRole from '$i18n/translations/enums/committeeRole';
import type Locale from '$types/Locale';
import { getMostRecentNewsItem } from '$lib/newsUtils';
import contactDetails from '$data/contactDetails';
import NewsIndex from '$components/NewsIndex/NewsIndex.astro';
import committee from '$data/committee';
import Button from '$components/Button.astro';
+import CommitteeRole from '$enums/CommitteeRole';
export async function getStaticPaths() {
return localeStaticPaths;
@@ -51,6 +53,9 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale);
)}
<div class="committee__member__text">
<h4>{member.name}</h4>
+ <p class="italic">
+ {member.roles.map((role) => t(tRole, { key: CommitteeRole[role] })).join(', ')}
+ </p>
{member.bio && <p set:html={member.bio[locale]} />}
</div>
</li>